<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <script type="text/javascript"> 
        window.onload = function() { 

            var getData = document.getElementById("getData"); 
            getData.onclick = function() { //获取数据 

                var msg = sessionStorage.getItem("data"); 
                if(msg) { 
                    alert("data字段中的值为：" + msg); 
                }else { 
                    alert("data字段无值！"); 
                } 
            } 
        } 
    </script> 
</head>
<body>
    测试统计
    <button onclick="_paq.push(['trackEvent', '首页', 'click', '分享', 10]);">点击事件统计</button>

    <input id="getData" type="button" value="获取数据"/> 

    <a href="http://xiaailin.oschina.io/test/testSS.html">返回testSS</a>

</body>
</html>